<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <jsp:useBean id="show" class="com.bookshopsystem.service.DataShow"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style/css/search.css" />
<script type="text/javascript" src="../style/js/jquery.js"></script>
<script type="text/javascript" src="../style/js/book.js"></script>
<script type="text/javascript" src="../style/js/dealPage.js"></script>
<script type="text/javascript">
	$(function() {
		creatPageBar();
		if(getCookie("showType")=="publish"){
			getPublish();
		}else{
			getCategoties();
		}
	});
</script>
<title>SEARCH</title>
</head>
<body>
	<%@include file="head.jsp" %>
		<div id="content">
			<div class="left">
				<ul class="point">
				<li><a id="pointC" class="first" href="javascript:void(0)" onmousemove="getCategoties()">种类</a></li>
				<li><a id="pointP" class="end" href="javascript:void(0)" onmousemove="getPublish()">出版社</a></li>
			</ul>
				<ul id="category" class="category">
					<c:forEach items="${show.getCategories()}" var="c">
						<li><a href="javascript:void(0)" onclick="CategorySearch(${c.id })">${c.name }</a></li>
					</c:forEach>
				</ul>
				<ul id="publisher" class="publisher">
					<c:forEach items="${show.getPublishers()}" var="p">
						<li><a href="javascript:void(0)" onclick="publisherSearch(${p.id })">${p.name }</a></li>
					</c:forEach>
				</ul>
			</div>
			<div class="right">
			<c:forEach items="${books }" var="book">
				<dl>
					<dd><a title="${book.title}" href="bookInfo.jsp?book=${book.id}" target="_blank"><img src="../style/img/book_logo/${book.picPath}" /></a></dd>
					<dt class="title"><a title="${book.title}" href="bookInfo.jsp?book=${book.id}" target="_blank">${book.title}</a></dt>
					<dt class="price">￥${book.unprice}</dt>
					<dt class="goShopping"><a href="javascript:void(0)" onclick="addShopping(${book.id},'true')">加入购物车</a><a class="end" href="#">关注</a></dt>
				</dl>
			</c:forEach>
			</div>
			<div id="RJ-pagebar" class="RU-pagebar"></div>
			<div id="mark"></div>
		</div>
	<%@include file="footer.jsp" %>
</body>
</html>
